<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: CircuitFile Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_circuit_file.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_circuit_file-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">CircuitFile Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="circuit__file_8h_source.html">circuit_file.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9531355f85784d3cb07621619db1a25e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#a9531355f85784d3cb07621619db1a25e">CircuitFile</a> (const char *file)</td></tr>
<tr class="separator:a9531355f85784d3cb07621619db1a25e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada52e90d66d704eea410a9c508a4feb8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#ada52e90d66d704eea410a9c508a4feb8">CircuitFile</a> (const <a class="el" href="class_circuit_file.html">CircuitFile</a> &amp;cf)</td></tr>
<tr class="separator:ada52e90d66d704eea410a9c508a4feb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1cacc20e58df97788469b45ab429a331"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#a1cacc20e58df97788469b45ab429a331">~CircuitFile</a> ()</td></tr>
<tr class="separator:a1cacc20e58df97788469b45ab429a331"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a732687e82a730d9bfc7cc852dfaf986f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#a732687e82a730d9bfc7cc852dfaf986f">table_size</a> () const</td></tr>
<tr class="separator:a732687e82a730d9bfc7cc852dfaf986f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a096f0e05e7c97518b079b85891a42698"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#a096f0e05e7c97518b079b85891a42698">compute</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *out, <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *in1, <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *in2)</td></tr>
<tr class="separator:a096f0e05e7c97518b079b85891a42698"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a10b5634a0bf348c6e7abd49f866b43b6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#a10b5634a0bf348c6e7abd49f866b43b6">num_gate</a></td></tr>
<tr class="separator:a10b5634a0bf348c6e7abd49f866b43b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa40dbb192f113768a1da0c991d64a9e9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#aa40dbb192f113768a1da0c991d64a9e9">num_wire</a></td></tr>
<tr class="separator:aa40dbb192f113768a1da0c991d64a9e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac41e7dc99ea23f0ef45bf2181850bd2e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#ac41e7dc99ea23f0ef45bf2181850bd2e">n1</a></td></tr>
<tr class="separator:ac41e7dc99ea23f0ef45bf2181850bd2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a98a288b190df500d51a43c46c14e70"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#a7a98a288b190df500d51a43c46c14e70">n2</a></td></tr>
<tr class="separator:a7a98a288b190df500d51a43c46c14e70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab38c383422b8a9948ce66d45721db41f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#ab38c383422b8a9948ce66d45721db41f">n3</a></td></tr>
<tr class="separator:ab38c383422b8a9948ce66d45721db41f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f15c2315f0af71b0cb040a655ce2ee2"><td class="memItemLeft" align="right" valign="top">int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#a7f15c2315f0af71b0cb040a655ce2ee2">gates</a></td></tr>
<tr class="separator:a7f15c2315f0af71b0cb040a655ce2ee2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51b27ff92a688dee9dc1dc787d3c36a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#a51b27ff92a688dee9dc1dc787d3c36a9">wires</a></td></tr>
<tr class="separator:a51b27ff92a688dee9dc1dc787d3c36a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ac52fd2934e5e70342762929492ba74"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#a7ac52fd2934e5e70342762929492ba74">tmp</a></td></tr>
<tr class="separator:a7ac52fd2934e5e70342762929492ba74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5f7775c1c30510261f6b8244f2bcb55"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_circuit_file.html#ac5f7775c1c30510261f6b8244f2bcb55">tmp2</a></td></tr>
<tr class="separator:ac5f7775c1c30510261f6b8244f2bcb55"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a9531355f85784d3cb07621619db1a25e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9531355f85784d3cb07621619db1a25e">&sect;&nbsp;</a></span>CircuitFile() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CircuitFile::CircuitFile </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>file</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ada52e90d66d704eea410a9c508a4feb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada52e90d66d704eea410a9c508a4feb8">&sect;&nbsp;</a></span>CircuitFile() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CircuitFile::CircuitFile </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_circuit_file.html">CircuitFile</a> &amp;&#160;</td>
          <td class="paramname"><em>cf</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1cacc20e58df97788469b45ab429a331"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1cacc20e58df97788469b45ab429a331">&sect;&nbsp;</a></span>~CircuitFile()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CircuitFile::~CircuitFile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a096f0e05e7c97518b079b85891a42698"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a096f0e05e7c97518b079b85891a42698">&sect;&nbsp;</a></span>compute()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CircuitFile::compute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>in1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>in2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a732687e82a730d9bfc7cc852dfaf986f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a732687e82a730d9bfc7cc852dfaf986f">&sect;&nbsp;</a></span>table_size()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int CircuitFile::table_size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a7f15c2315f0af71b0cb040a655ce2ee2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f15c2315f0af71b0cb040a655ce2ee2">&sect;&nbsp;</a></span>gates</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int* CircuitFile::gates</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac41e7dc99ea23f0ef45bf2181850bd2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac41e7dc99ea23f0ef45bf2181850bd2e">&sect;&nbsp;</a></span>n1</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CircuitFile::n1</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7a98a288b190df500d51a43c46c14e70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a98a288b190df500d51a43c46c14e70">&sect;&nbsp;</a></span>n2</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CircuitFile::n2</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab38c383422b8a9948ce66d45721db41f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab38c383422b8a9948ce66d45721db41f">&sect;&nbsp;</a></span>n3</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CircuitFile::n3</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a10b5634a0bf348c6e7abd49f866b43b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10b5634a0bf348c6e7abd49f866b43b6">&sect;&nbsp;</a></span>num_gate</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CircuitFile::num_gate</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa40dbb192f113768a1da0c991d64a9e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa40dbb192f113768a1da0c991d64a9e9">&sect;&nbsp;</a></span>num_wire</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CircuitFile::num_wire</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7ac52fd2934e5e70342762929492ba74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ac52fd2934e5e70342762929492ba74">&sect;&nbsp;</a></span>tmp</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CircuitFile::tmp</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac5f7775c1c30510261f6b8244f2bcb55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5f7775c1c30510261f6b8244f2bcb55">&sect;&nbsp;</a></span>tmp2</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int CircuitFile::tmp2</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a51b27ff92a688dee9dc1dc787d3c36a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51b27ff92a688dee9dc1dc787d3c36a9">&sect;&nbsp;</a></span>wires</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>* CircuitFile::wires</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Users/wangxiao/git/emp-toolkit/emp-tool/circuits/<a class="el" href="circuit__file_8h_source.html">circuit_file.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_circuit_file.html">CircuitFile</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
